package com.heima.article.job;

import com.heima.article.service.ApArticleService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class HotArticleCompute {

    @Autowired
    private ApArticleService apArticleService;


    @XxlJob("computeHotArticleJob")
    public void ComputeHotArticle(){
        log.info("热点计算文章信息begin");
        apArticleService.ComputeHotArticle();
        log.info("热点计算文章信息end");
    }
}
